package com.dj.mingkong.common.infrastructure.eo.mongodb.message;

import com.dj.mingkong.common.infrastructure.base.eo.BaseMgEo;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 私信
 *
 * @author zenglonghui
 * @date: 2023/6/19 17:39
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "dj_message_private")
@Accessors(chain = true)
public class MessagePrivateMgEo extends BaseMgEo {
    /**
     * 私信内容
     */
    private String content;

    /**
     * 聊天窗口id
     */
    private String boxId;

    /**
     * 发送人id
     */
    private Long sendUserId;

    /**
     * 接收人id
     */
    private Long receiveUserId;

    /**
     * 状态 0未读 1已读 2已撤回
     */
    private Integer status;

    /**
     * 关联ID
     */
    private String relationId;
}
